<!DOCTYPE html>
<html dir="ltr" lang="cn">
<head>
    <meta charset="UTF-8" />
    <title>配货单打印</title>
    <link href="__PUBLIC__/bootstrap/css/bootstrap.css" rel="stylesheet" media="all" />
    <script type="text/javascript" src="__PUBLIC__/plugins/jQuery/jQuery-2.1.4.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/bootstrap/css/bootstrap.min.css"></script>
    <link href="__PUBLIC__/bootstrap/css/font-awesome.min.css" type="text/css" rel="stylesheet" />
    <style media="print" type="text/css">.noprint{display:none}</style>
</head>
<body>
<div class="container">
    <div style="page-break-after: always;">
        <h1 class="text-center">订单信息</h1>
        <table class="table table-bordered">
            <thead>
            <tr>
                <td style="width: 50%;">发送自</td>
                <td style="width: 50%;">订单详情</td>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td><address><strong>{$shop.store_name}</strong><br/>{$shop.address}</address>
                    <b>电话：</b> {$shop.phone}<br/>
                    <b>E-Mail：</b> {$shop.smtp_user}<br/>
                    <b>网址：</b> <a href="{$shop.tpshop_http}">{$shop.tpshop_http}</a>
                </td>
                <td style="width: 50%;">
                	<b>下单日期：</b> {$order.add_time|date='Y-m-d',###}<br />
                    <b>订单号：</b> {$order.order_sn}<br />                    
					<b>支付方式：</b> {$order.pay_name|default="其他"}<br/>                    
                    <b>配送方式：</b> {$order.delivery_method}<br/>
                    <b>用户备注：</b> {$order.user_note}<br/>
                </td>
            </tr>
            </tbody>
        </table>
        <table class="table table-bordered">
            <thead>
            <tr>
                <td colspan="4"><b>收货信息</b></td>
            </tr>
            <tr><td>收件人</td><td>联系电话</td><td>收货地址</td><td>邮编</td></tr>
            </thead>
            <tbody>
            <tr>
            	<td>{$order.consignee}</td>
            	<td>{$order.mobile}</td>
                <td>{$order.province}&nbsp;&nbsp;{$order.city}&nbsp;&nbsp;{$order.district}&nbsp;&nbsp;{$order.address}</td>
                <td>{$order.zipcode}</td>
            </tr>
            </tbody>
        </table>
        <table class="table table-bordered">
            <thead>
            <tr>
                <td><b>商品名称</b></td>
                <td><b>状态</b></td>
                <td><b>规格属性</b></td>
                <td><b>数量</b></td>
                <td><b>单价</b></td>
                <td class="text-right"><b>小计</b></td>
            </tr>
            </thead>
            <tbody>
            <volist name="$order.orderGoods" id="good">
                <tr>
                    <td>{$good.goods_name}</td>
                    <td>
                        <if condition="$order.shop_id gt 0">
                            <if condition="$order.shipping_status eq 0">
                                待自提
                                <else/>
                                已自提
                            </if>
                            <else/>
                            <if condition="$good.is_send eq 0">未发货</if>
                        </if>
                        <if condition="$good.is_send eq 1">已发货</if>
                        <if condition="$good.is_send eq 2">已退货</if>
                        <if condition="$good.is_send eq 3">已换货</if>
                    </td>
                    <td>{$good.spec_key_name}</td>
                    <td>{$good.goods_num}</td>
                    <td>{$good['prom_type']==7?$good.goods_price:$good.member_goods_price}</td>
                    <td class="text-right">{$good.total_member_goods_price}</td>
                </tr>
            </volist>
            </tbody>
            <tfoot>
            <tr><td colspan="5" class="text-center"><input class="btn btn-default noprint" type="submit" onclick="window.print();" value="打印"></td></tr>
            </tfoot>
        </table>
    </div>
</div>
</body>
</html>